package com.dz.mapper;

import com.dz.bean.Rate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RateDao {

    //添加评分
    int addRate(@Param("rate") Rate rate);

    //根据地陪id获取地陪评分
    Double getRateByGuideId(@Param("guideId") Integer guideId);

    List<Rate> getRateByVisitorAndGuide(@Param("visitorId") Integer visitorId, @Param("guideId") Integer guideId);

}
